/**
 * @project_name AskForleave_vehicle
 * @package_name com.ssh.dao
 * @desc TODO
 * @param
 * @author jack
 * @date 2013-4-23
 * @time 下午3:31:25
 */
package com.ssh.dao;

import java.util.List;

import com.ssh.entity.AskForleave;
import com.ssh.model.pdata.AskForLeaveMData;

/**
 * @author jack
 * @askfl AskForleave 员工请假申请 接口
 */
public interface AskForleaveDAOI {
	public AskForleave queryAskFLById(String askFLId);
	public AskForleave updateAskFL(AskForleave askFL);
	public AskForleave deleteAskFLById(String askFLId);
	public AskForleave addAskFL(AskForleave askFL);
	public List<AskForleave> queryAskFL(String ...strings);
	public int updateAskFL(AskForleave ...askFLs);
	public int deleteAskFL(String ...strings);
	public int addAskFL(AskForleave ...askFLs);
	public List<AskForleave> queryAskFLByExtra(String extra);
	public List<AskForleave> queryMyAFL(String staffId);

	/**返回员工请假所有相关信息*/
	public List<AskForLeaveMData> queryAllAskForLeave();
	/**返回某一员工请假所有相关信息*/
	public List<AskForLeaveMData> queryOneAskForLeave(String idWhoAskForLeave);
	/**
	 * @param state
	 * @return
	 */
	public List<AskForLeaveMData> queryAllAskForLeave(int state);
	/**
	 * @param idWhoAskForLeave
	 * @param state
	 * @return
	 */
	public List<AskForLeaveMData> queryOneAskForLeave(String idWhoAskForLeave,
			int state);
	/**
	 * @param id
	 * @return
	 * 按逐渐id查询某一申请信息
	 */
	public AskForleave queryById(int id);
}
